﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AjaxControlToolkit;

namespace qbaproject
{
    public partial class _Default : System.Web.UI.Page
    {

        public static readonly string STORED_IMAGE = "SessionImage";

        protected void Page_Load(object sender, EventArgs e)
        {
           /* ScriptManager.RegisterClientScriptBlock(this,GetType(), "teste", "function getRandomNumber(){" +
                                                                             "" +
                                                                             "var randomnumber = Math.random(10000);" +
                                                                             "return randomnumber" +
                                                                             "}" +
                                                                             "" +
                                                                             "function OnClientAsyncFileUploadComplete(sender, args) " +
                                                                             "{" +
                                                                             " var handlerPage = '<%= Page.ResolveClientUrl('~/ImageHandler.ashx')%>';" +
                                                                             "var queryString = '?randomno=' + getRandomNumber();" +
                                                                             "var src = handlerPage + queryString;" +
                                                                             "var clientId = '<%=previewImage.ClientID %>';" +
                                                                             "document.getElementById(clientId).setAttribute('src', src);" +
                                                                             "}" +
                                                                             "", true);*/

           
            
        }

    }
}
